package hcn.protocol.ods.newdiagnosis;/**
 * @Auther: Administrator
 * @Date: 2019/4/22 20:33
 * @Description:
 */

import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * @description: 费用单详细列表his返回数据
 * @author: chenJij@bsoft.com.cn
 * @date: 2019/8/23 10:46
 */
@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
@ToString
public class NewGetFeeDetailHisResponseBean implements Serializable {


    /**
     * totalFee : 总金额
     * payAmount : 自付金额
     * displayName : 支付名称
     * payType : 支付方式
     * insuranceType : 医保类别名称：浙江有省医保、市医保、萧山医保、余杭医保
     */

    private double totalFee;//总金额
    private double payAmount;//付款金额
    private String displayName;//支付名称
    private String payType;//支付方式
    private String insuranceType;//医保类别名称
    private List<DetailsBeanX> record;

    @NoArgsConstructor
    @Data
    @Builder
    @AllArgsConstructor
    @ToString
    public static class DetailsBeanX {
        /**
         * itemName : 西药费
         * itemCode : 1
         * totalFee : 356.89
         */

        private String feeNo;
        private String feeTypeCode;
        private String feeTypeName;
        private String departmentId;
        private String departmentName;
        private String doctorId;
        private String doctorName;
        private String payStatus;
        private String patientName;
        private String feeDate;
        private double amount ;
        private List<DetailsBean> details;

        @NoArgsConstructor
        @Data
        @Builder
        @AllArgsConstructor
        @ToString
        public static class DetailsBean {
            /**
             * groupNo : 1
             * parentItemCode : 子类项目代码itemCode的大类，为了便于app交互
             * itemCode : 项目代码
             * itemName : 项目名称
             * specification : 项目规格
             * quantity : 数量
             * price : 单价
             * totalFee : 金额
             * remark : 备注
             * dosage : 剂量
             * dosageUnit : 剂量单位
             * frequencyCode : 频次代码
             * frequency : 频次
             * usageCode : 用法代码
             * usage : 用法
             * days : 用药天数
             */

            private String groupNo;
            private String itemCode;
            private String itemName;
            private String specification;
            private String itemNumber;
            private double price;
            private double fee;
            private String remark;
            private double dosage;
            private String dosageUnit;
            private String frequencyCode;
            private String frequency;
            private int usageCode;
            private String usage;
            private String decoctionDesc;
            private int days;
        }
    }
}
